<include file="Public/Public_header"/>

    <div class="content">
        <foreach name="articles" item="var">
            <article class="article">
                <div class="article-meta">
                    <time>{$var.create_time}</time>
                </div>
                <div class="article-inner">
                    <header class="article-header">
                        <h1>
                            <a class="article-title" href="{:U('Article/index', array('id' => $var['id']))}">{$var.title|mb_strimwidth=0,22,'','utf-8'}</a>
                        </h1>
                    </header>
                    <div class="article-entry">
                        <if condition="$var.description eq '' ">
                            {$var.content|htmlspecialchars_decode|strip_tags|str_replace='&nbsp;','',###|trim|mb_strimwidth=0,50,'...','utf-8'}
                            <else />
                            {$var.description|mb_strimwidth=0,50,'...','utf-8'}
                        </if>
                    </div>
                    <div class="article-info">
                        <img src="__ASSET__/Home/images/label.png">
                        <a href="{:U('Category/index', array('cid' => $var['category_id']))}">{$var.category_name}</a>
                    </div>
                </div>
            </article>
        </foreach>
    </div>
    <div class="page">
        {$page}
    </div>
</div>
<label for="sidebar-checkbox" class="sidebar-toggle"></label>

<include file="Public/footer"/>
